import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import fastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'
// 下面可以直接引用绝对路径文件，是因为webpack配置了 /build/webpack.base.conf.js
import 'common/stylus/index.styl'

/* eslint-disable no-unused-vars */
// import vConsole from 'vconsole'
// console.log('正在使用vconsole')

// 通过fastClick这个组件解决click在手机端的300毫秒延时问题
fastClick.attach(document.body)
Vue.use(VueLazyLoad, {
  loading: require('common/image/default.png')
})

/* eslint-disable no-new */

const app = new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
});
/*const  app = new Vue({
  router
}).$mount('#app')*/
